GXDoesPaperFit
QuickDraw GX sends theGXDoesPaperFit
message to determine if a specific paper type is acceptable on the printing device that your driver supports. You can override
theGXDoesPaperFit
message to set or modify the returned value. Your override of theGXDoesPaperFit
message must match the following formal declaration:
OSErr MyDoesPaperFit (gxTrayIndex whichTray, gxPaperType paper, Boolean *fits);
whichTray
- The tray in which the paper is to be loaded.
paper
- The paper type.
fits
- On return, a Boolean value that is
true
if the paper can be used on the printer andfalse
if not.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXDoesPaperFit
message to limit the number of paper-type names that appear in the Paper pop-up menu in the Page Setup dialog box. You can override theGXDoesPaperFit
message to notify QuickDraw GX that a certain paper type does not work in the specified paper tray on your device.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help